<template>
  <header>
    <h1><img src="../../assets/images/logo.png" alt="" /></h1>
    <div class="search" @click="goSearch">
      <i class="iconfont icon-Magnifier"></i>
      <span>搜您喜欢的...</span>
    </div>
    <div class="kefu">
      <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
export default {
  name: "Header",
  methods: {
    goSearch() {
      this.$router.push('/search')
    },
  },
};
</script>

<style scoped lang="scss">
header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 1.6rem;
  background-color: #b0352f;
  h1 {
    padding: 0 0.266667rem;
    width: 3.2rem;
    height: 1.333333rem;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.search {
  display: flex;
  align-items: center;
  width: 5.066667rem;
  height: 0.8rem;
  background-color: #fff;
  border-radius: 12px;
  i {
    padding: 0 0.16rem;
    color: #ccc;
  }
  span {
    font-size: 0.373333rem;
    color: #ccc;
  }
}
.kefu i {
  font-size: 0.8rem;
  color: #fff;
}
</style>